package com.city.service.city.impl;

import com.city.domain.city.CityEventType;
import com.city.repository.city.CityEventTypeRepository;
import com.city.service.city.CityEventTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @deprecation: 案件分类
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-18 13:14
 */
@Service
public class CityEventTypeServiceImpl implements CityEventTypeService {

    @Autowired
    private CityEventTypeRepository eventTypeRepository;

    @Override
    public List<CityEventType> findAllByTypeClass(int typeClass) {
        return eventTypeRepository.findAllByTypeClass(typeClass);
    }
}
